package com.keqing.interview;

public class OutClass {
	private int age ;
	//局部内部类或者匿名内部类使用外部的局部变量，要把局部变量声明为final
	public void outPrint(final int x) {
		class InClass{
			public void inPrint() {
//				x = 12;
				age = 12;
				System.out.println(x);
				System.out.println(age);
			}
		}
		new InClass().inPrint();
		age = 33;
	}
}
